package com.lagou.dao;

import com.lagou.pojo.User;

import java.util.List;

public interface IUserDao {
    /**
     * 查询所有
     */
    public List<User> findAll() throws Exception;

    /**
     * 根据条件查询一条
     */
    public User findByCondition(User user) throws Exception;

    /**
     * 添加
     */
    public Boolean saveUser(User user) throws Exception;

    /**
     * 删除
     */
    public Boolean deleteById(Integer id) throws Exception;

    /**
     * 修改
     */
    public Boolean updateUser(User user) throws Exception;

}
